package edu.neelsys.objectmodel.userauth;

import org.springframework.security.core.GrantedAuthority;

import edu.neelsys.objectmodel.dbentites.UserRoleEnum;

public class LoggedUserRole implements GrantedAuthority {

	UserRoleEnum userRoleEnum;

	public LoggedUserRole(UserRoleEnum userRoleEnum) {
		this.userRoleEnum = userRoleEnum;
	}

	@Override
	public String getAuthority() {

		return this.userRoleEnum.name();
	}

}
